package com.nantai.jiafang.nantaijiafang.nt5s.Control;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * Created by Administrator on 2017/10/31.
 */

public class MYListView extends ListView {
    public MYListView(Context context) {
        super(context);
    }

    public MYListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MYListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int mExpandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, mExpandSpec);
    }

}
